package cse333.panels;

import cse333.PanelSwitcher;

public class ScholarshipStatusBox extends javax.swing.JPanel {

    private PanelSwitcher pc;
    
    /**
     * Creates new form ScholarshipStatusBox
     */
    public ScholarshipStatusBox(PanelSwitcher pc) {
        initComponents();
        this.pc = pc;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        ScholName = new javax.swing.JLabel();
        deadline = new javax.swing.JLabel();
        statusLabel = new javax.swing.JLabel();
        textScrollPane = new javax.swing.JScrollPane();
        textDescription = new javax.swing.JTextPane();
        removeButton = new javax.swing.JButton();
        viewButton = new javax.swing.JButton();

        setBackground(new java.awt.Color(0, 0, 0));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255), 2));
        setFocusTraversalPolicyProvider(true);
        setMaximumSize(new java.awt.Dimension(700, 200));
        setMinimumSize(new java.awt.Dimension(700, 200));
        setPreferredSize(new java.awt.Dimension(700, 200));

        ScholName.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        ScholName.setForeground(new java.awt.Color(255, 255, 255));
        ScholName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        ScholName.setText("Scholarship Name");
        ScholName.setAlignmentY(0.0F);
        ScholName.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));

        deadline.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        deadline.setForeground(new java.awt.Color(255, 255, 255));
        deadline.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        deadline.setText("Due: 12/16/2012");
        deadline.setToolTipText("");
        deadline.setAlignmentY(0.0F);
        deadline.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));
        deadline.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        statusLabel.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        statusLabel.setForeground(new java.awt.Color(255, 255, 255));
        statusLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        statusLabel.setText("Status: Denied");
        statusLabel.setToolTipText("");
        statusLabel.setAlignmentY(0.0F);
        statusLabel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));
        statusLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        textDescription.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        textDescription.setText("This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship This is a sample description of a scholarship ");
        textScrollPane.setViewportView(textDescription);

        removeButton.setBackground(new java.awt.Color(204, 102, 0));
        removeButton.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        removeButton.setForeground(new java.awt.Color(255, 255, 255));
        removeButton.setText("Remove");
        removeButton.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));
        removeButton.setBorderPainted(false);
        removeButton.setOpaque(true);

        viewButton.setBackground(new java.awt.Color(204, 102, 0));
        viewButton.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        viewButton.setForeground(new java.awt.Color(255, 255, 255));
        viewButton.setText("View");
        viewButton.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));
        viewButton.setBorderPainted(false);
        viewButton.setOpaque(true);
        viewButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(ScholName, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(deadline, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(84, 84, 84)
                .addComponent(textScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 22, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(viewButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(removeButton, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(ScholName, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(deadline, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(statusLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 20, Short.MAX_VALUE)
                        .addComponent(viewButton, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(removeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(17, 17, 17)))
                .addContainerGap())
        );

        deadline.getAccessibleContext().setAccessibleName("Number of Applications");
    }// </editor-fold>//GEN-END:initComponents

    private void viewButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewButtonActionPerformed
        pc.switchToPanel(ScholarshipViewPanel.class, true); // Hide Apply Button
    }//GEN-LAST:event_viewButtonActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel ScholName;
    private javax.swing.JLabel deadline;
    private javax.swing.JButton removeButton;
    private javax.swing.JLabel statusLabel;
    private javax.swing.JTextPane textDescription;
    private javax.swing.JScrollPane textScrollPane;
    private javax.swing.JButton viewButton;
    // End of variables declaration//GEN-END:variables
}
